package com.guet.niit.Login.pojo;

import javafx.beans.property.DoubleProperty;
import javafx.beans.property.LongProperty;
import javafx.util.converter.LocalDateTimeStringConverter;

import java.time.LocalDateTime;

public class ProfitData {
    private LongProperty id;
    private LongProperty agentId;
    private LongProperty stationId;
    private DoubleProperty profit;
    private LocalDateTime updateTime;

    public long getId() {
        return id.get();
    }

    public LongProperty idProperty() {
        return id;
    }

    public void setId(long id) {
        this.id.set(id);
    }

    public long getAgentId() {
        return agentId.get();
    }

    public LongProperty agentIdProperty() {
        return agentId;
    }

    public void setAgentId(long agentId) {
        this.agentId.set(agentId);
    }

    public long getStationId() {
        return stationId.get();
    }

    public LongProperty stationIdProperty() {
        return stationId;
    }

    public void setStationId(long stationId) {
        this.stationId.set(stationId);
    }

    public double getProfit() {
        return profit.get();
    }

    public DoubleProperty profitProperty() {
        return profit;
    }

    public void setProfit(double profit) {
        this.profit.set(profit);
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public ProfitData(LongProperty id, LongProperty agentId, LongProperty stationId, DoubleProperty profit, LocalDateTime updateTime) {
        this.id = id;
        this.agentId = agentId;
        this.stationId = stationId;
        this.profit = profit;
        this.updateTime = updateTime;
    }

    public ProfitData(LongProperty id, DoubleProperty profit, LongProperty stationId, LocalDateTime updateTime) {
        this.id = id;
        this.profit = profit;
        this.stationId = stationId;
        this.updateTime = updateTime;
    }

    public ProfitData() {
    }

    @Override
    public String toString() {
        return "ProfitData{" +
                "id=" + id +
                ", agentId=" + agentId +
                ", stationId=" + stationId +
                ", profit=" + profit +
                ", updateTime=" + updateTime +
                '}';
    }
}
